package com.txts.road.app.event.model.dto;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.*;

/**
 * 赛事报名表单对象
 *
 * @author baoyr
 * @since 2025-07-17 10:46
 */
@Getter
@Setter
@Schema(description = "赛事报名表单对象")
public class EventRegistrationDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "报名ID")
    @NotNull(message = "报名ID不能为空")
    private Long id;

    @Schema(description = "赛事ID")
    @NotNull(message = "赛事ID不能为空")
    private Long eventId;

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "参赛者姓名")
    @NotBlank(message = "参赛者姓名不能为空")
    @Size(max=50, message="参赛者姓名长度不能超过50个字符")
    private String participantName;

    @Schema(description = "参赛者手机号")
    @NotBlank(message = "参赛者手机号不能为空")
    @Size(max=20, message="参赛者手机号长度不能超过20个字符")
    private String participantPhone;

    @Schema(description = "参赛者身份证号")
    @Size(max=50, message="参赛者身份证号长度不能超过50个字符")
    private String participantIdcard;

    @Schema(description = "参赛者邮箱")
    @Size(max=50, message="参赛者邮箱长度不能超过50个字符")
    private String participantEmail;

    @Schema(description = "参数者地址")
    @Size(max=255, message="参数者地址长度不能超过255个字符")
    private String participantAddress;

    @Schema(description = "设备名")
    @Size(max=50, message="设备名长度不能超过50个字符")
    private String deviceName;

    @Schema(description = "设备型号")
    @Size(max=50, message="设备型号长度不能超过50个字符")
    private String deviceModel;

    @Schema(description = "序列号")
    @Size(max=50, message="序列号长度不能超过50个字符")
    private String serialNo;

    @Schema(description = "北斗卡号")
    @Size(max=50, message="北斗卡号长度不能超过50个字符")
    private String beidouCardNo;

    @Schema(description = "IMEI号（15位唯一标识）")
    @Size(max=50, message="IMEI号（15位唯一标识）长度不能超过50个字符")
    private String imeiNo;

    @Schema(description = "MAC地址")
    @Size(max=20, message="MAC地址长度不能超过20个字符")
    private String macAddress;

    @Schema(description = "车辆名称")
    @Size(max=50, message="车辆名称长度不能超过50个字符")
    private String vehicleName;

    @Schema(description = "车辆品牌")
    @Size(max=50, message="车辆品牌长度不能超过50个字符")
    private String vehicleBrand;

    @Schema(description = "车型")
    @Size(max=50, message="车型长度不能超过50个字符")
    private String vehicleType;

    @Schema(description = "车牌号")
    @Size(max=50, message="车牌号长度不能超过50个字符")
    private String licensePlateNo;

    @Schema(description = "车架VIN码")
    @Size(max=20, message="车架VIN码长度不能超过20个字符")
    private String vin;
}
